<script setup>
	import {
		ref,
		inject
	} from 'vue'
	defineProps({
		msg: String
	})
	const message = inject('message')
	const testMessage = () =>{
        message.suc('hello')
	}
</script>

<template>
	<div class="hello-world-wrap">
		<el-button @click="testMessage">消息provide测试</el-button>
	</div>
</template>
<style scoped>
	.hello-world-wrap{
		height: 1000px;
	}
	.hello-world-wrap > .item{
		height: 40px;
	}
</style>